/*
 * igo: com.cctv.igo.security.domain.PrincipalMapping.java Create On 2011-3-16 上午10:57:36 By Q-Wang
 * $Revision: 1.1 $
 */
package com.ctvit.framework.security.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.Criteria;

import com.ctvit.framework.domain.BaseEntity;

/**
 * @author <a href="mailto:apeidou@gmail.com">Q-Wang</a>
 *
 */
@Entity
@Table(name="T_SEC_PRINCIPAL_MAPPING")
public class PrincipalMapping implements BaseEntity<Long> {

	private Long id;

	/**
	 * @see com.dota.framework.domain.BaseEntity#getId()
	 */
	@Id
	@Column(name="PK")
	public Long getId() {
		return id;
	}

	/**
	 * @see com.dota.framework.domain.BaseEntity#setId(java.io.Serializable)
	 */
	public void setId(Long id) {
		this.id = id;
	}

	private String foreignId;

	/**
	 * @return the foreignId
	 */
	@Column(name="FOREIGN_ID",length=32,nullable=false,unique=true)
	public String getForeignId() {
		return foreignId;
	}

	/**
	 * @param foreignId the foreignId to set
	 */
	public void setForeignId(String foreignId) {
		this.foreignId = foreignId;
	}

	/**
	 * @see com.dota.framework.domain.BaseEntity#buildQuery(org.hibernate.Criteria)
	 */
	public Criteria buildQuery(Criteria criteria) {
		// TODO Auto-generated method stub
		return null;
	}
}
